<?php

class ElFinderController extends FController
{
    public function actions()
    {
        return array(
            'connector' => array(
                'class' => 'common.extensions.elfinder.ElFinderConnectorAction',
                'settings' => array(
                    'root' => Yii::getPathOfAlias('resource') . '/',
                    'URL' => '/resources/',
                    'rootAlias' => 'Home',
                    'mimeDetect' => 'internal',
                    'uploadAllow'  => array('image', 'application/x-shockwave-flash'),
                    'uploadDeny'   => array('all'),
                    'uploadOrder'  => 'deny,allow'
                )
            ),
        );
    }
}
